package com.why.zing.alipay.service;


import com.why.zing.alipay.builder.AlipayTradeCancelRequestBuilder;
import com.why.zing.alipay.builder.AlipayTradePrecreateRequestBuilder;
import com.why.zing.alipay.builder.AlipayTradeQueryRequestBuilder;
import com.why.zing.alipay.builder.AlipayTradeRefundRequestBuilder;
import com.why.zing.alipay.result.AlipayF2FCancelResult;
import com.why.zing.alipay.result.AlipayF2FPrecreateResult;
import com.why.zing.alipay.result.AlipayF2FQueryResult;
import com.why.zing.alipay.result.AlipayF2FRefundResult;


/**
 * 订单处理
 *
 * @author 睁眼看世界
 * @date 2020年1月10日
 */
public interface AlipayTradeService {


    /**
     * 当面付2.0消费查询
     */
    AlipayF2FQueryResult queryTradeResult(AlipayTradeQueryRequestBuilder builder);

    /**
     * 当面付2.0消费退款
     */
    AlipayF2FRefundResult tradeRefund(AlipayTradeRefundRequestBuilder builder);

    /**
     * 当面付2.0预下单(生成二维码)
     */
    AlipayF2FPrecreateResult tradePrecreate(AlipayTradePrecreateRequestBuilder builder);

    /**
     * 取消订单
     */
    AlipayF2FCancelResult cancelTrade(AlipayTradeCancelRequestBuilder builder);
}
